package cn.tedu.springbootdemo.util;

import org.springframework.util.DigestUtils;

public class GlobalPasswordEncoder {

    private GlobalPasswordEncoder() {
    }

    public static String encode(String rawPassword){
        return DigestUtils.md5DigestAsHex(rawPassword.getBytes());
    }

}
